package com.itheima.springbootmybatis.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itheima.springbootmybatis.domain.TargetLinkConf;
import com.itheima.springbootmybatis.domain.Zjpz;
import com.itheima.springbootmybatis.service.TargetLinkConfService;
import com.itheima.springbootmybatis.service.ZjpzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


import java.sql.Wrapper;
import java.util.List;

@RequestMapping("/tar")
@RestController
public class TargetLinkConfController {

    @Autowired
    private TargetLinkConfService targetLinkConfService ;

    @Autowired
    private ZjpzService zjpzService ;

    @PostMapping("/chaxun")
    public TargetLinkConf chaxun(@RequestParam String masterTargetCode){

        masterTargetCode.toString();
        TargetLinkConf chaxun = targetLinkConfService.chaxun(masterTargetCode);
        return chaxun ;
    }

    @PostMapping("/mas")
    public List<String> mas(@RequestParam String masterTargetCode){
        List<String> list = targetLinkConfService.queryZBIdByz(masterTargetCode);
        return list ;

    }

   /* @PostMapping("/zjpz")
    public Zjpz zjpz(@RequestParam String targetCode){
        zjpzService.getOne()
    }*/
}
